<!DOCTYPE html>
<html lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
	<meta name="renderer" content="webkit" />
	<meta name="force-rendering" content="webkit" />
	<title></title>
	<link type="text/css" rel="stylesheet" href="${base}/templates/${config.theme}/mobile/css/style.css" />
	<script type="text/javascript" src="${base}/templates/${config.theme}/mobile/static/js/jquery.js"></script>
	<script type="text/javascript" src="${base}/templates/${config.theme}/mobile/static/js/ajax.js"></script>
	<script type="text/javascript" src="${base}/templates/${config.theme}/mobile/static/js/common.js"></script>
</head>

<body>
<div class="headerbox">
	<div class="header">
		<div class="headerL">
			<a onclick="javascript:history.back(-1)" class="goback"><img src="${base}/templates/${config.theme}/mobile/images/goback.png" /></a>
		</div>
		<div class="headerC">
			<p>编辑地址</p>
		</div>
		<div class="headerR">
			<!--			<a id="btnadd">完成</a>-->
		</div>
	</div>
</div>
<div class="clear"></div>
<div class="hbox"></div>
<div class="kbox"></div>

<form action="${base}/member/receiver/update" method="post" id="inputForm">
	<input type="hidden" name="id" value="${receiver.id}">
	<div class="addressDiv">
		<div class="addiv1">
			<div class="addiv1_l">收货人：</div>
			<div class="addiv1_r"><input name="consignee" value="${receiver.consignee}" type="text" placeholder="收货人姓名" /></div>
		</div>
		<div class="addiv1">
			<div class="addiv1_l">手机号：</div>
			<div class="addiv1_r"><input  name="phone" value="${receiver.phone}"  type="text" placeholder="手机号"/></div>
		</div>
		<div class="addiv1">
			<div class="addiv1_l">省份：</div>
			<div>
				<select class="text_select province" data-value="${receiver.areaId}" data-treePath="${receiver.area.treePath}">
					<option value="">请选择</option>
				</select>
			</div>
		</div>
		<div class="addiv1">
			<div class="addiv1_l">城市：</div>
			<div>
				<select class="text_select city">
					<option value="">请选择</option>
				</select>
			</div>
		</div>
		<div class="addiv1">
			<div class="addiv1_l">区县：</div>
			<div>
				<select name="areaId" class="text_select district">
					<option value="">请选择</option>
				</select>
			</div>
		</div>
		<div class="addiv1">
			<div class="addiv1_l">详细地址：</div>
			<div class="addiv1_r"><input  name="address" value="${receiver.address}" type="text" placeholder="详细收货地址"/></div>
		</div>

		<input type="submit" class="btn_red" value="确认" autocomplete="off" style="    width: 100%;
    height: 2.5rem;
    background: url(/templates/default/mobile/images/tcbg.jpg) repeat-y;
    margin-top: 2rem;
    border: none;
    color: #fff;" />
	</div>
</form>
<div class="clear"></div>
<div class="kbox"></div>
</body>

<script type="text/javascript">
	$(document).ready(function() {

		$('#inputForm').submit(function() {
			var consignee=$('#consignee').val();
			if(consignee == ''){
				alert("请输入收货人姓名!")
				return false;
			}
			var district=$('#district').val();
			if(district == ''){
				alert("请选择收货地址!")
				return false;
			}
			var phone=$('#phone').val();
			if(phone == ''){
				alert("请输入电话!")
				return false;
			}
		});
	});
</script>

</html>